package com.wangzhixuan.model;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;

import java.util.Date;

import com.baomidou.mybatisplus.enums.IdType;
import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author zhixuan.wang
 * @since 2017-08-05
 */
@TableName("c_customer")
public class Customer extends Model<Customer> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
	@TableId(value="id", type= IdType.AUTO)
	private Integer id;
    /**
     * 客户名称
     */
	private String name;
    /**
     * 手机号
     */
	private String phone;
    /**
     * 公司名称
     */
	@TableField("company_name")
	private String companyName;
    /**
     * 公司地址
     */
	@TableField("company_address")
	private String companyAddress;
    /**
     * 邮箱
     */
	private String email;
    /**
     * 微信
     */
	@TableField("weex_name")
	private String weexName;
    /**
     * 创建人
     */
	@TableField("create_id")
	private Integer createId;
    /**
     * 创建时间
     */
	@TableField("create_time")
	private Date createTime;
    /**
     * 首字母
     */
	@TableField("initials")
	private String initials;
	/**
     * 户号
     */
	@TableField("account_number")
	private String accountNumber;
    /**
     * 电表号码（不重复，每个用户唯一）
     */
	@TableField("ele_num")
	private String eleNum;
	@TableField("rate_id")
	private Integer rateId;
    /**
     * 电表规格
     */
	@TableField("spec_id")
	private Integer specId;
    /**
     * 计量装置id
     */
	@TableField("meter_id")
	private Integer meterId;

    /**
     * 客户群id
     */
	@TableField("group_id")
	private Integer groupId;
    public Integer getGroupId() {
		return groupId;
	}

	public void setGroupId(Integer groupId) {
		this.groupId = groupId;
	}

	/**
     * x坐标
     */
	@TableField("x_coor")
	private String xCoor;
    /**
     * y坐标
     */
	@TableField("y_coor")
	private String yCoor;
	


	public String getAccountNumber() {
		return accountNumber;
	}

	public void setAccountNumber(String accountNumber) {
		this.accountNumber = accountNumber;
	}

	public String getEleNum() {
		return eleNum;
	}

	public void setEleNum(String eleNum) {
		this.eleNum = eleNum;
	}

	public Integer getRateId() {
		return rateId;
	}

	public void setRateId(Integer rateId) {
		this.rateId = rateId;
	}

	public Integer getSpecId() {
		return specId;
	}

	public void setSpecId(Integer specId) {
		this.specId = specId;
	}

	public Integer getMeterId() {
		return meterId;
	}

	public void setMeterId(Integer meterId) {
		this.meterId = meterId;
	}


	public String getxCoor() {
		return xCoor;
	}

	public void setxCoor(String xCoor) {
		this.xCoor = xCoor;
	}

	public String getyCoor() {
		return yCoor;
	}

	public void setyCoor(String yCoor) {
		this.yCoor = yCoor;
	}

	public String getInitials() {
		return initials;
	}

	public void setInitials(String initials) {
		this.initials = initials;
	}

	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getCompanyName() {
		return companyName;
	}

	public void setCompanyName(String companyName) {
		this.companyName = companyName;
	}

	public String getCompanyAddress() {
		return companyAddress;
	}

	public void setCompanyAddress(String companyAddress) {
		this.companyAddress = companyAddress;
	}

	public String getEmail() {
		return email;
	}

	public void setEmail(String email) {
		this.email = email;
	}

	public String getWeexName() {
		return weexName;
	}

	public void setWeexName(String weexName) {
		this.weexName = weexName;
	}

	public Integer getCreateId() {
		return createId;
	}

	public void setCreateId(Integer createId) {
		this.createId = createId;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

}
